<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>花瓣网个人设置</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <css file='__PUBLIC__/css/index.css' />
            <css file='__PUBLIC__/css/com.css'>
                <css file='__PUBLIC__/css/edit_user.css'>
                    <jquery />
                    <style>
                        .icon{ background:url('__PUBLIC__/img/main_menu_sprite.png'); }
                        body{background:url('__PUBLIC__/img/bg.gif') }
                        #sub{background:url('__PUBLIC__/img/sub.png')}
                        .baocun{width:140px;height:40px;border:0px;background:url('__PUBLIC__/img/baocun.png')}
                        #h_logon,#reg_2{background:url('__PUBLIC__/img/tips_bg.gif')}
                        #reg_3 {
                            background: url("__PUBLIC__/img/home_mv.png") no-repeat scroll 0 0 transparent;

                        }
                        .cols{background:url("__PUBLIC__/img/cols.png")}
                        .sub{background:url("__PUBLIC__/img/logon_sub.png")}
                    </style>
                    <js file='__PUBLIC__/js/index.js'/>
                        <script>
                            $(function(){
                            var fag=true;
                             $("input[name='p1']").blur(function(){
                                    var p1=$("input[name='p1']").val();
                                    var p2=$("input[name='p2']").val();
                                   if(p1==''){
                                      $("span[name='sp2']").css('color','red');
                                      $("span[name='sp2']").text('新密码不能为空');
                                    return  fag=false;
                                   }else{
                                       $("span[name='sp2']").text(''); 
                                   return  fag=true;
                                   }
                               })
                               
                               
                               $("input[name='p2']").blur(function(){
                                    var p1=$("input[name='p1']").val();
                                    var p2=$("input[name='p2']").val();
                                 
                                   if(p1==p2){
                                     $("span[name='sp3']").text('输入正确');
                              return    fag=true;
                                    }else{
                                         $("span[name='sp3']").css('color','red');
                                          $("span[name='sp3']").text('两次密码不相同请重新输入');
                                    return   fag=false;
                                    }
                                        
                                    
                                })
                                $("#p_sub").submit(function(){
                                     var p1=$("input[name='p1']").val();
                                    var p2=$("input[name='p2']").val();
                                   if(p1==''){
                                      $("span[name='sp2']").css('color','red');
                                      $("span[name='sp2']").text('新密码不能为空');
                                      return false;
                                   }
                                    if(fag==false){
                                     
                                        return false;
                                    }else{
                                     
                                        return true;
                                    }
                                })
                            })
                        </script>

                    </head>
                    <body>
                        <!-- 头部分 -->
                        <div id='heade' >
                            <div id='title' style="width:60%;">
                                <div id='shouye'>
                                    <a href='__CONTROL__/index' title='首页'>
                                        <em class="icon"></em>
                                        <span style='color:red;'>首页</span>
                                    </a>
                                </div>
                                <span id='logo'>
                                    <img src='__PUBLIC__/img/logo_38.png' />
                                </span>
                                <span class='fanhui'> <a href="__CONTROL__/index">返回首页</a></span>


                                <div id='seach' style='margin-right:0px;margin-top: 3px'>
                                    <form action='#' method='post'>
                                        <input type='text' name='seache' />
                                        <input id='sub' type='submit' title='搜索' value='' />
                                    </form>
                                </div>

                            </div>

                        </div>

                        <!-- 账号设置 -->
                        <div class='zhanghaoshezhi'>
                            <span>修改密码</span> 
                           
                        </div>
                        <form action="__CONTROL__/pwds" id="p_sub" method="post">
                            <div class='z_con'>
                                <table>
                                    <tr>
                                        <td>当前密码:</td>  
                                         <td><span class='put'> <input type="password" name='password1'> </span></td> 
                                         <td><span name="sp1" style="font-size:14px;">如果没有设置过密码不用输入</span><td>
                                    </tr>
                                    <tr>
                                         <td>新密码:</td>  
                                         <td><span class='put'> <input name="p1" type="password" name='password2'> </span></td> 
                                          <td><span name="sp2" style="font-size:14px;">输入新密码</span><td>
                                    </tr>
                                    <tr>
                                         <td>确认密码: </td>  
                                         <td>  <span class='put'> <input name="p2" type="password" name='password3' ></span></td> 
                                         <td><span name="sp3" style="font-size:14px;">在输入一次新密码</span><td>
                                    </tr>
                                    <tr border="1px">
                                         <td></td>  
                                          <td align="center" > </td> 

                                    </tr>
                                    <tr>
                                         <td> </td>  
                                         <td> <input  class="baocun" type="submit" value=""></td>  

                                    </tr>

                                </table>
                               
                            </div>
                        </form>
                    </body>
                    </html>
